package com.sl.au.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.sl.au.entity.EXDEviewPaymentTotal;
import com.sl.au.repository.EXDEPayIncomeRepository;
import com.sl.au.service.EXDEPayIncomeService;

/**
 * 销售收入统计
 * @author yry
 * 2017-02-20
 */
@Service(value="EXDEPayIncomeService")
@Transactional
public class EXDEPayIncomeServiceImpl extends BaseServiceImpl implements EXDEPayIncomeService {

	@Autowired
	EXDEPayIncomeRepository exdePayIncomeRepository;
	
	@Override
	public EXDEPayIncomeRepository getRepository() {
		// TODO Auto-generated method stub
		return this.exdePayIncomeRepository;
	}

	/**
	 * 调用查询语句
	 */
	@Override
	public List<EXDEviewPaymentTotal> getMyPage(Map<String, String> condition) {
		List<EXDEviewPaymentTotal> pages=null;
		//System.out.println(condition.get("year"));
		pages = exdePayIncomeRepository.findAllTrance(condition.get("year"));
		//System.out.println(pages);
		return pages;
	}

}
